package com.woniuxy.food.client.foodpropclient;

import com.woniuxy.food.client.result.ClientFoodPropDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

import java.util.List;

@FeignClient(contextId = "foodPropQueryClient",name = "food")
public interface FoodPropQueryClient {
    @GetMapping("/searchFoodPropBySpuId")
    public Result<List<ClientFoodPropDto>> searchFoodPropBySpuId(@RequestParam("storeId")Integer storeId, @RequestParam("spuId")Integer spuId);
}
